package br.jcrsistemas.componentes;

import java.awt.Component;
import javax.swing.JDesktopPane;

/**
 *
 * @author Carlos Ribeiro
 */
public class SysDesktopPane extends JDesktopPane{

    @Override
    public Component add(Component comp) {
        if(comp instanceof InternalFrame) {
            return super.add(((InternalFrame)comp).getInternalFrame());
        }
        return super.add(comp);
    }
    
    
}
